<html>
<body>
<a href="http://justjavac.iteye.com/blog/1465169">关于闭包及变量回收问题</a>
<script>
	function outer(){
    var foo1 = 1;
    var foo2 = 'foo';
		function inner (){
			foo1++;
			return foo1;
		}
    return inner;
	}

	var fn = outer();
	console.log(fn()); //inner 的closure 是 outer
</script>
</body>
</html>
